import { LOGGER } from '../action/common'

//初始值
const initState = {
  logger: null
}

//reduce
export default (state = initState, { type, payload }) => {
  switch (type) {
    case LOGGER:
      return { ...state, logger: { ...state.logger, ...payload.data } }
    default:
      return state
  }
}
